package cn.gaozhong.ymcc.service;

import cn.gaozhong.ymcc.domain.Course;
import cn.gaozhong.ymcc.dto.CourseDto;
import cn.gaozhong.ymcc.vo.CourseDetailVo;
import cn.gaozhong.ymcc.vo.CourseItemVo;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author GZ.gaozhong
 * @since 2022-07-21
 */
public interface ICourseService extends IService<Course> {

    void save(CourseDto dto);

    /**
     * 课程上架
     * @param courseId
     */
    void onLineCourse(Long courseId);

    CourseDetailVo detail(Long courseId);

    /**
     * 支付订单
     * @param courseIds
     * @return
     */
    CourseItemVo orderInfo(String courseIds);
}
